package com.yneusoft.manage.model;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author lt
 * @date 2021/10/22 19:13
 * @description: 分页查询基类
 */
@Data
public class PageParamModel {

    /**
     * 当前页码
     */
    @NotNull(message = "页码不能为空")
    @Min(value = 0,message = "页码不能为负数")
    private Integer page;

    /**
     * 每页记录数
     */
    @NotNull(message = "分页大小不能为空")
    @Min(value =1,message = "分页大小最小为1")
    private Integer PageSize;
}
